<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* p {
            font-weight: bold;
            font-size: 22px;
        }
        
        p::first-letter {
            font-size: 44px;
            color: red;
        }
        
        div {
            word-spacing: 200px;
        } */
        /* div {
            width: 300px;
            text-align: center;
            outline: 1px solid;
            font-size: 0;
        }
        
        span {
            display: inline-block;
            font-size: 20px;
            width: 100px;
            line-height: 100px;
            border-bottom: 1px solid lightcyan;
            background: cyan;
        }
        
        i {
            display: inline-block;
            width: 100px;
            height: 100px;
        } */
        
        a {
            text-decoration: none;
        }
        
        .hover-tips {
            display: block;
            width: 100px;
            text-align: center;
            color: #fff;
            position: relative;
            padding: 0 20px;
            border-radius: 10px;
            height: 40px;
            /* 标准盒子模型 box-sizeing:boder-box */
            background: #66f;
            line-height: 40px;
        }
        
        .hover-tips+.hover-tips {
            margin-top: 10px;
        }
        
        .btn-1::after {
            position: absolute;
            left: 0;
            top: 0;
            border-radius: 5px;
            width: 100%;
            height: 100%;
            background-color: rgb(0, 0, 0, 0.5);
            opacity: 0;
            text-align: center;
            font-size: 12px;
            content: attr(data-msg);
            transition: all 300ms;
        }
        
        .btn-1:hover::after {
            left: calc(100% + 20px);
            opacity: 1;
        }
    </style>
</head>

<body>
    <!-- <p>￥1000</p>
    <div>我有空 格，我来了...</div> -->
    <!-- <div>
        <Span>1</Span>
        <Span>2</Span>
        <Span>3</Span>
        <Span>4</Span>
        <Span>5</Span>
        <i>6</i>
        <i>7</i>
        <i>8</i>
    </div> -->
    <div class="bruce flex-ct-y" data-title="使用attr()抓取节点属性">
        <a href="https://www.baidu.com" data-msg="hello world" class="hover-tips btn-1">提示框</a>
        <a href="https://www.baidu.com" class="hover-tips btn-2"></a>
    </div>
</body>

</html>